package chip8

type Randomizer interface {
	Next() uint8
}

type Keyboard interface {
	KeyDown(which uint8) bool
}

type KeyEvent interface {
	LastKey() (keyWasPressed bool, key uint8)
	ClearLastKey()
}

type Screen interface {
	IsSet(x, y int) bool
	Size() (w, h int)
}

type Speakers interface {
	Beep()
	BeQuiet()
}
